package this与super区别及联系;

public class Apple extends Fruit{//定义一个苹果子类继承水果父类
    int price=90;

    public void showPrice(){
        int price=80;
        System.out.println(price);
        System.out.println(this.price);
        System.out.println(super.price);
    }

}
